<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<jsp:include page="Welcome.jsp" />
	<c:choose>
		<c:when test="${empty sessionScope.upgrades}">
	There are no products to upgrade to
	</c:when>
		<c:otherwise>
			<html:form action="Upgrade.do">
				<c:forEach items="${sessionScope.upgrades}" var="prod">
					<html:radio property="pid" value="${prod.pid}">${prod.description} ${prod.cost }</html:radio>
					<br />
				</c:forEach>
				<html:submit property="submit" value="Upgrade" />
			</html:form>
		</c:otherwise>
	</c:choose>
</body>
</html>